<script setup>
import { computed } from 'vue'
import emptyImg from '../imgs/empty.svg'

defineProps({
  emptyText: {
    type: String,
    default: '暂无数据'
  },
  subText: String,
})
</script>

<template>
  <div class="empty-wrapper">
    <img :src="emptyImg" class="empty-img" />
    <div class="empty-text">{{ emptyText || '暂无数据' }}</div>
  </div>
</template>

<style scoped>
.empty-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.empty-img {
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
}

.empty-text {
  color: #909399;
  font-size: 14px;
}
</style>
